package org.example.demo1startjava17;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;

@EnableCaching
//@ServletComponentScan("org.example.demo1startjava17.filter")
@ServletComponentScan
@SpringBootApplication
public class Demo1StartJava17Application {

    public static void main(String[] args) {
//        SpringApplication.run(Demo1StartJava17Application.class, args);
        SpringApplicationBuilder builder = new SpringApplicationBuilder(Demo1StartJava17Application.class);
        builder.headless(false)
//                .web(WebApplicationType.NONE)
//                .bannerMode(Banner.Mode.OFF)
                .run(args);
    }

}


